#!/bin/bash
SVN_DIR="/home/wesley/freewheel/google_svn/trunk/prompts/"
PROMPTS_DIR="/home/wesley"

cd $PROMPTS_DIR
echo "current dir:" `pwd`

echo "copying files..."
echo "  cp -r $PROMPTS_DIR/sudo.* $SVN_DIR"
cp -r $PROMPTS_DIR/sudo.* $SVN_DIR
echo "  cp -r $PROMPTS_DIR/svn.* $SVN_DIR"
cp -r $PROMPTS_DIR/svn.* $SVN_DIR

cd $SVN_DIR
echo "svn dir:" `pwd`

echo "svn st" 
svn st .

echo "svn add"
svn st | grep '^?' | tr '^\?' ' ' | sed 's/[ ]*//' | sed 's/[ ]/\\ /g' | xargs svn add

echo "svn ci"
svn ci .

echo "OK"
